﻿using System.ServiceModel;
using VideoServices.Services.Dto;
using VideoServices.Services.Response;

namespace VideoServices.Services.Interface
{
    [ServiceContract]
    public interface IStockService
    {
        /// <summary>
        /// Gets the item by id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        [OperationContract]
        Response<StockDto> GetItemById(int id);

        /// <summary>
        /// Creates the item.
        /// </summary>
        /// <param name="newStock">The new stock.</param>
        /// <returns></returns>
        [OperationContract]
        Response<StockDto> CreateItem(StockDto newStock);
    }
}
